package di.er.zhong.Test;

import di.er.zhong.Model.User;

import java.util.List;

public class Test {
    public static void main(String[] args) {
        UserDaolmpl userDaolmpl = new UserDaolmpl();
        //查询
        List<User> users = userDaolmpl.selectAll();
        System.out.println("users = " + users);
        //删除
//        int i = userDaolmpl.delete(6);
//        System.out.println("i = " + i);
        //修改
//        int i = userDaolmpl.update(new User(5,"tt","123456","DD"));
//        System.out.println(i);
        //查单个
//        User user = userDaolmpl.select(6);
//        System.out.println("user = " + user);
//        插入
//        int i = userDaolmpl.insert(new User(6, "裴佳乐", "123456", "仰止"));
//        System.out.println("i = " + i);
    }
}
